package com.fyi.springbootmongocomment.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment {
    //ID
    private String _id;
    //文章ID
    private String articleid;
    //评论内容
    private String content;
    //评论人ID
    private String userid;
    //评论人昵称
    private String nickname;
    //评论的日期时间
    private Date createdatetime;
    //点赞数
    private Integer likenum;
    //回复数
    private Integer replynum;
    //状态
    private String state;
    //上级ID
    private String parentid;

}

